cmake_minimum_required(VERSION 2.8)


project(NIOServer C CXX)

find_package(Threads)
set(CMAKE_CXX_STANDARD 14)  

SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")

AUX_SOURCE_DIRECTORY(./src SRC_LIST)
ADD_EXECUTABLE(xmain ${SRC_LIST}) 


target_link_libraries(xmain pthread)
